<html>
    <head>
<!--        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">-->
<!--        <link rel="stylesheet" type="text/css" href="/regisonline/resources/script/sales.css">-->
        <title>.::ระบบสมัครเรียนออนไลน์::.</title>
<!--    <script type="text/javascript" src="/regisonline/resources/script/script.js" charset="utf-8"></script>-->
    <style type="text/css">
<!--
body {
	background-color: #CCFFFF;
}
-->
    </style>
    <script type="text/javascript">	
//	loadPageFull(200,50,200,400);
        loadPageFull(0,0,0,0);        
    </script>
    </head>
    <body onLoad="document.home.txtUsername.focus();">
        <?
//        $config['base_url'] = "http://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
//        echo $config['base_url'];

             	  		        $timestamp = time();
					$H= date("H",$timestamp);
					$min= date("i",$timestamp);
					$sec= date("s",$timestamp);
					$H_del=$H-1;
					$Ctime="$H_del:$min:$sec"; 
                                        $today= date("Y-m-d H:i:s");
//                                        echo $today." AND ".$Ctime;
        ?>
    <form name="home" method="post" action="/regisonline/template?phppage=loginaction.php&login" onSubmit="return checkInput(document.home.txtUsername,document.home.txtPassword);">
        <table width="550" height="120" border="2" align="center" cellspacing="2" bordercolor="#000000" bgcolor="#FFFFFF">            
               <tr>
                 <td width="208" height="124" align="center" bordercolor="#000000" ><image src="/regisonline/resources/images/gif/logo.jpg" width="159" height="120" align="center" title="โลโก้โรงเรียนเวียงเจดีย์วิทยา"/></td>
                   <td width="300" align="center" bordercolor="#000000" ><a href='/regisonline/template?phppage=regisform.php'> <image src="/regisonline/resources/images/gif/gif5.bmp" width="372" height="120" border="0" align="center" title="Click เพื่อเข้าสู่ระบบสมัครเรียนออนไลน์>>"/></a></td>
               </tr>
      </table>
        <table width="550" height="36" border="2" align="center" cellspacing="2" bordercolor="#000000" bgcolor="#FFFFFF">           
                   <tr>
                       <td height="28" align="center" >
                       <a href='/regisonline/template?phppage=home.php&searchPrt&home'> <image src="/regisonline/resources/images/gif/gif6.bmp" height="30" title="พิมพ์ใบสมัคร" /></a></td>
                   </tr>             
      </table>
        <table width="550" height="147" border="2" align="center" cellspacing="2" bordercolor="#000000" bgcolor="#FFFFFF">           
            <tbody>  
              <tr>
                <th height="23" colspan="2" align="center" valign="top" bgcolor="#FF9933" class="style16bold"> สำหรับเจ้าหน้าที่ </th>
              </tr>            
              <tr>
                <td width="195" height="15" align="left"><div align="right" class="style14"><strong>รหัสเจ้าหน้าที่ :</strong></div></td>
                <td width="343"><input id="txtUsername" name="txtUsername" type="text"  maxlength="13" style="<?=$txtIn3?>"/></td>
              </tr>              
              <tr>
                <td height="26"><div align="right" class="style14"><strong>รหัสผ่าน : </strong></div></td>
                <td><input id="txtPassword" name="txtPassword" type="password" maglength="10" style="<?=$txtIn3?>"/></td>
              </tr>                
              <tr>
                  <td height="34" colspan="2" align="center"><input type="image" name="Submit" src="/regisonline/resources/images/gif/gif7.bmp" width="80" height="30" title="เข้าสู่ระบบ" /></td>
              </tr>  
              <?
              if(isset($_GET['nopass'])){
                  $txt_check = "USERNAME OR PASSWORD IS WRONG!";
              }else if(isset($_GET['logout'])){
                  $txt_check = "ENTER USERNAME AND PASSWORD!";
              }
              if(isset($_GET['nopass']) || isset($_GET['logout'])){

              ?>
              <tr>
                <td height="22" colspan="2" align="center"><font color="red"><?=$txt_check?></font></td>
              </tr> 
               <?
              }
              ?>
            </tbody>
      </table>
    </form>
    <?
        if(isset($_GET['searchPrt'])){
        include("searchPrt.php");
        }
    ?>
    </body>
</html>
